<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<div class="t_bar">
	<span class="color_red">*</span>实验动物从业人员
</div>
	<table  id="zh_persons3" border="0" cellspacing="0" cellpadding="0" class="table01 t_css" >
		<thead>
			<tr>
        <th width="5%">选择</th>
        <th width="5%">序号</th>
				<th width="15%">姓名</th>
				<th width="10%">性别</th>
				<th width="10%">证件</th>
				<th width="15%">文化程度</th>
				<th width="15%">所学专业</th>
				<th width="15%">与实验动物管理相关的岗位</th>
				<th width="10%">实验动物专业培训证书号</th>
			</tr>
		</thead>
		<tbody id="tab">
		      <tr style="display:none">

            <td align="center">
							<input type="radio" class="radiobutton" name="selzhpersons3" >
						</td>

						<td align="center">
							<span name="zhpersons3|zhperson[0]@seq_no" >[index]</span> 
						</td>
						
						
						<td align="center">
						  <input type="text"  id="content1[0]" name="zhpersons3|zhperson[0]|content1" label="姓名"  maxlength="10"
						         class="required input_text"  value=""  style="width:80%"/>
						</td>
						
						
						 <td align="center">
						    <cpt:select id="sex_3_[index]" name="sex"  key="sex" onChange="initControlValue(this.id);"  style="width:80%" ></cpt:select>
				        <input type="hidden" name="zhpersons3|zhperson[0]|sex_value" value="" class="required"  lable="性别"/>
				        <input type="hidden" name="zhpersons3|zhperson[0]|sex_name" value="" />
			      </td>
		
		        <td align="center">
						    <cpt:select id="card_type_3_[index]" name="card_type"  key="id_type_1" onChange="initControlValue(this.id);"  style="width:80%" ></cpt:select>
				        <input type="hidden" name="zhpersons3|zhperson[0]|card_type_value" value="" class="required"  lable="证件"/>
				        <input type="hidden" name="zhpersons3|zhperson[0]|card_type_name" value="" />
			      </td>
		
		        <td align="center">
						    <cpt:select id="educate_3_[index]" name="educate"  key="educate" onChange="initControlValue(this.id);"  style="width:80%" ></cpt:select>
				        <input type="hidden" name="zhpersons3|zhperson[0]|educate_value" value="" class="required"  lable="文化程度"/>
				        <input type="hidden" name="zhpersons3|zhperson[0]|educate_name" value="" />
			      </td>
		
		        <td align="center">
						  <input type="text"  id="content3[0]" name="zhpersons3|zhperson[0]|content3" label="所学专业"  maxlength="20"
						         class="required input_text"  value=""  style="width:80%"/>
						</td>
		
		        <td align="center">
						    <cpt:select id="animal_related_job_3_[index]" name="animal_related_job"  key="animal_related_job1" onChange="initControlValue(this.id);"  style="width:80%" ></cpt:select>
				        <input type="hidden" name="zhpersons3|zhperson[0]|animal_related_job_value" value="" class="required"  lable="与实验动物管理相关的岗位"/>
				        <input type="hidden" name="zhpersons3|zhperson[0]|animal_related_job_name" value="" />
			      </td>
			      
			      <td align="center">
						  <input type="text"  id="content2[0]" name="zhpersons3|zhperson[0]|content2" label="实验动物专业培训证书号"  maxlength="6"
						         class="required input_text"  value=""  style="width:80%"/>
						</td>
			      
		</tr>
		

	   	    <c:set value="0" var="index" scope="page"/>
					<x:forEach select="$xmlData/data/zhpersons3/zhperson" var="zhperson">
					
					<c:choose>
						<c:when test="${index<10}" ><c:set value="0" var="flag" scope="page"/></c:when>
						<c:otherwise><c:set value="" var="flag" scope="page"/></c:otherwise>
					</c:choose>
					<tr>
					
					  <td align="center">
							<input type="radio" class="radiobutton" name="selzhpersons3" >
						</td>
					
					
						<td align="center">
							<span   name="zhpersons3/zhperson[${flag}${index}]@seq_no"><x:out select="$zhperson/@seq_no"/></span> 
						</td>
						
						<td align="center">
						    <input type="text"  id="content1[${flag}${index}]" label="姓名"  maxlength="10"  name="zhpersons3/zhperson[${flag}${index}]/content1"
						           value="<x:out select="$zhperson/content1"/>"   style="width:80%"   class="required input_text"/>
						</td>
						
						<td align="center">
			        <c:set var="sex"><x:out select="$zhperson/sex_value" /></c:set>
			        <cpt:select id="sex_3_${index}"   name="sex"   key="sex" style="width: 80%;" value="${sex}" onChange="initControlValue(this.id);"></cpt:select>
		        	<input type="hidden" name="zhpersons3/zhperson[${flag}${index}]/sex_value"  class="required" value="<x:out select="$zhperson/sex_value" />" label="性别"/>
			        <input type="hidden" name="zhpersons3/zhperson[${flag}${index}]/sex_name" value="<x:out select="$zhperson/sex_name" />"  label="性别"/>
		        </td>
		        
		        <td align="center">
			        <c:set var="card_type"><x:out select="$zhperson/card_type_value" /></c:set>
			        <cpt:select id="card_type_3_${index}"   name="card_type"   key="id_type_1" style="width: 80%;" value="${card_type}" onChange="initControlValue(this.id);"></cpt:select>
		        	<input type="hidden" name="zhpersons3/zhperson[${flag}${index}]/card_type_value"  class="required" value="<x:out select="$zhperson/card_type_value" />" label="证件"/>
			        <input type="hidden" name="zhpersons3/zhperson[${flag}${index}]/card_type_name" value="<x:out select="$zhperson/card_type_name" />"  label="证件"/>
		        </td>
		        
		        <td align="center">
			        <c:set var="educate"><x:out select="$zhperson/educate_value" /></c:set>
			        <cpt:select id="educate_3_${index}"   name="educate"   key="educate" style="width: 80%;" value="${educate}" onChange="initControlValue(this.id);"></cpt:select>
		        	<input type="hidden" name="zhpersons3/zhperson[${flag}${index}]/educate_value"  class="required" value="<x:out select="$zhperson/educate_value" />" label="文化程度"/>
			        <input type="hidden" name="zhpersons3/zhperson[${flag}${index}]/educate_name" value="<x:out select="$zhperson/educate_name" />"  label="文化程度"/>
		        </td>
		        
		        <td align="center">
						    <input type="text"  id="content3[${flag}${index}]" label="所学专业"  maxlength="20"  name="zhpersons3/zhperson[${flag}${index}]/content3"
						           value="<x:out select="$zhperson/content3"/>"   style="width:80%"   class="required input_text"/>
						</td>

		        <td align="center">
			        <c:set var="animal_related_job"><x:out select="$zhperson/animal_related_job_value" /></c:set>
			        <cpt:select id="animal_related_job_3_${index}"   name="animal_related_job"   key="animal_related_job1" style="width: 80%;" value="${animal_related_job}" onChange="initControlValue(this.id);"></cpt:select>
		        	<input type="hidden" name="zhpersons3/zhperson[${flag}${index}]/animal_related_job_value"  class="required" value="<x:out select="$zhperson/animal_related_job_value" />" label="与实验动物管理相关的岗位"/>
			        <input type="hidden" name="zhpersons3/zhperson[${flag}${index}]/animal_related_job_name" value="<x:out select="$zhperson/animal_related_job_name" />"  label="与实验动物管理相关的岗位"/>
		        </td>
		        
		        <td align="center">
						    <input type="text"  id="content2[${flag}${index}]" label="实验动物专业培训证书号"  maxlength="6"  name="zhpersons3/zhperson[${flag}${index}]/content2"
						           value="<x:out select="$zhperson/content2"/>"   style="width:80%"   class="required input_text"/>
						</td>
		        
		        
					</tr>
					<c:set value="${index+1}" var="index" scope="page"/>
					</x:forEach>
					<script type="text/javascript">
						showAllDateTag("zh_persons3");
					</script>
				</tbody>
</table>
<br/>

<table width="98%" align="center">
					<tr ><td>
					<input class="button" name="cmdAddbefore" type=button value="添加" onclick="if(checkTabLimit('zh_persons3',50,'实验动物从业人员最多只能填写50条')){addNewRow('zh_persons3');showDateTag('zh_persons3');}try{top.resizeFrame();}catch(e){};">
					<input class="button" name="cmdMovePrev" type=button value="上移" onclick="movePrev('zh_persons3','selzhpersons3')">
					<input class="button" name="cmdMoveNext" type=button value="下移" onclick="moveNext('zh_persons3','selzhpersons3')">
					<input class="button" name="cmddel" type=button  value="删除" onclick="deleteSelectedRow('zh_persons3','实验动物从业人员')">
					</td></tr>
</table>
